<?php

namespace app\common\exception;

/**
 * Api通用错误码
 * Class ApiErrDesc
 * @package app\common\exception
 * @author ^2_3^王尔贝
 */
class ApiErrDesc
{
    const SUCCESS = [0, 'Success'];

    /**
     * error_code 1 - 1000
     */
    const ERR_UNKNOWN = [1, '未知错误'];

    /**
     * api error_code 1001 - 1100
     */
    const ERR_TOKEN_WRONG = [1001, '签名token不正确'];
    const ERR_TOKEN_NO_EFFECT = [1002, 'token还未生效'];
    const ERR_TOKEN_EXPIRED = [1003, 'token过期'];
    const ERR_VALIDATE = [1004, '参数验证错误'];
    const ERR_NO_TOKEN = [1005, '没有token令牌'];
    const END_ACCOUNT_DISABLED = [1006, '账号已被禁用'];
    const END_RULE_PARSE = [1007, '应用/模块/操作，解析失败'];
    const END_NO_AUTH = [1008, '没有权限'];

    /**
     * error_code 1101 - 1200
     */


    /**
     * error_code 1201 - 1300
     */
}